package com.hpq.user.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "user_role")
public class UserRole implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @TableId(value="id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户uid
     */
    @TableField("uid")
    private Long uid;
    /**
     * 角色id
     */
    private Long roleId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date updateTime;
}
